/**
 * IVsysUserDao.java
 * Created at 2017-3-23
 * Created by shihui
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.dao;

import java.util.List;
import java.util.Map;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.DaoException;
import com.broadtext.rms.system.model.VSysUsers;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * <p>ClassName: IVsysUserDao</p>
 * <p>Description: 用户视图Dao层</p>
 * <p>Author: shihui</p>
 * <p>Date: 2017-3-23</p>
 */
public interface IVsysUserDao {

    /**
     * 
     * <p>Description: 根据角色查询用户</p>
     * @param map 查询条件
     * @param pageBounds 翻页
     * @return 结果
     * @throws DaoException 异常
     */
    @SuppressWarnings("rawtypes")
    EntityPageBean findUserPageByRole(Map<String, Object> map, PageBounds pageBounds) throws DaoException;

    /**
     * 
     * <p>Description: 根据角色查询待添加用户</p>
     * @param map 查询条件
     * @param pageBounds 翻页
     * @return 结果
     * @throws DaoException 异常
     */
    @SuppressWarnings("rawtypes")
    EntityPageBean findUserPageByRoleToAdd(Map<String, Object> map, PageBounds pageBounds) throws DaoException;

    /**
     * 
     * <p>Description: 根据用户名获取用户信息</p>
     * @param userName 用户名
     * @return List<SysUser>
     * @throws DaoException daoException
     */
    List<VSysUsers> selectByUserName(String loginName) throws DaoException;

}
